package com.anti.modular.bus.busroomconfiguration.enums;

import com.anti.commom.core.exception.AbstractBaseExceptionEnum;
import com.anti.commom.core.factory.ExpEnumCodeFactory;

/**
 * 房间家私配置
 *
 * @author AnTi
 * @date 2021-04-07 21:09:17
 */
public enum BusRoomConfigurationExceptionEnum implements AbstractBaseExceptionEnum {

    /**
     * 数据不存在
     */
    NOT_EXIST(1, "此数据不存在");

    private final Integer code;

    private final String message;
        BusRoomConfigurationExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return ExpEnumCodeFactory.getExpEnumCode(this.getClass(), code);
    }

    @Override
    public String getMessage() {
        return message;
    }

}
